@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
    width: 100%;
    height: auto;
    float: left;
    margin: 0;
    padding: 0;   
    direction: rtl;
}
body *{
    text-transform: capitalize;
    text-decoration: none;
    font-family: font;
    list-style: none;
}
.search-advanced-form{
    width: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}
.search-advanced{
    width: 100%;
    float: left;
    display: flex;
    box-sizing: border-box;
    /* overflow: hidden; */
    padding: 0.4em;
    background: linear-gradient(-90deg, rgb(62 61 147) 0%, rgb(211 141 243) 70%);
    border-radius: 30px;
    position: relative;
}
.search-advanced input{
    width: 100%;
    float: left;
    background-color: transparent;
    border: none;
    outline: none;
    box-sizing: border-box;
    padding: 0.5em 1em;
    font-size: 14px;
    background-color: white;
    border-radius: 100px;
}
.search-advanced button{
    width: 3em;
    float: left;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    border-radius: 100px;
    border: none;
    background-color: transparent;

}
.search-advanced i{
    color: white !important;

}
.suggestions {
    width: 400px;
    float: left;
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #fff;
    z-index: 10;
    max-height: 30vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    box-sizing: border-box;
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px 2px rgba(108, 92, 231, 0.2);
}
.suggestions-container {
    width: 100%;
    float: left;
    display: flex;
    flex-direction: column;
}

.suggestion-section {
    width: 100%;
    float: left;
    padding: 1em;
    box-sizing: border-box;
}

.suggestions a:hover {
    background-color: #f0f0f0;
}
.suggestions i{
    color: rgb(211 141 243) !important;
    margin-left: 10px !important;
}
.suggestion-section:first-child {
    border-top: none;
}

/* section titles */
.suggestion-title {
    font-size: 17px;
    font-weight: bold;
    color: #555;
    margin: 0;
    margin-bottom: 0.5em;
    padding: 0;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}

/* icon inside suggestion */
.suggestion-icon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* text inside suggestion */
.suggestion-text {
    flex-grow: 1;
    font-size: 14px;
}
.child-item {
    padding-left: 24px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-direction: column;
}

/* متن زیر دسته */
.child-parent-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}


.suggestion-section:first-child {
    border-top: none;
}
.suggestion-section a{
    margin-bottom: 0.3em;
}
.suggestion-section a:last-child{
    margin: 0;
}
.suggestion-item {
    width: 100%;
    float: left;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    flex-direction: row !important;
}


.child-item .child-parent-label {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* نوار اسکرول برای Webkit (Chrome, Edge, Safari) */
.suggestions::-webkit-scrollbar {
    width: 8px;               /* عرض نوار اسکرول */
}

.suggestions::-webkit-scrollbar-track {
    background: #f0f0f0;      /* رنگ مسیر اسکرول */
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb {
    background-color: #a29bfe; /* رنگ دسته اسکرول */
    border-radius: 4px;
    border: 2px solid #f0f0f0; /* فاصله از مسیر */
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background-color: #6c5ce7; /* رنگ هنگام هاور */
}

/* نوار اسکرول برای Firefox */
.suggestions {
    scrollbar-width: thin;      /* نوار باریک */
    scrollbar-color: #a29bfe #f0f0f0; /* thumb و track */
}

.history-items-wrapper{
    width: 100%;
    float: left;
    display: flex;
    flex-wrap: wrap;
}
.suggestion-history-item {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    margin: 5px 5px 0 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-history-item:hover {
    background-color: #e0e0e0;
}

.suggestion-history-item .suggestion-icon {
    margin-left: 6px;
    color: #888;
}

.history-text {
    font-weight: normal;
}

.suggestion-history-item i{
    margin-right: 0;
    margin-left: 5px !important;
}
.no-result{
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    color: red !important;
}
.no-result i{
    color: red !important;
    font-size: 20px !important;
    margin-left: 5px !important;
}
.search-results-section{
    border-top: 1px dashed rgb(62 61 147);
}
@media screen and (max-width:480px) {
    .suggestions{
        width: 320px !important;
    }
    .search-advanced-form-res{
        display: none;
    }
}